package com.wuwei.elearning.messageQueen;

import com.wuwei.elearning.dto.ConversionMessage;

/**
 * Interface for message consumers
 */
public interface MessageConsumer {
    /**
     * Process a message from the queue
     * 
     * @param message The message to process
     * @return true if the message was processed successfully, false otherwise
     */
    boolean consume(ConversionMessage message);
    
    /**
     * Get the topic this consumer is interested in
     * 
     * @return The topic name
     */
    String getTopic();
} 